/**
 * 拦截请求数据处理服务
 */

import type { PlasmoMessaging } from "@plasmohq/messaging"
import { Storage } from "@plasmohq/storage"

const storage = new Storage()

const handler: PlasmoMessaging.MessageHandler = async (req, res) => {
  console.log("拦截请求数据处理服务", req)
  storage.set("intercept", "123").then()
  res.send({ message: "拦截请求数据处理服务" })
}

export default handler
